package predict.app.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

/**
 * Created by CL on 2017/9/22.
 */

public class Notifyservice extends Service {
    @Override
    public IBinder onBind(Intent arg0) {
        return null;
    }

    public void onCreate() {
        MainActivity app = MainActivity.getApp();   //获取Mainactivity类，其实就是为了改他的时间
        app.btEvent("来自Notifyservice");  //修改title的名字
        Toast.makeText(this, "这是系统自带的service", Toast.LENGTH_SHORT).show();
    }
}
